package script.api.util

import com.alibaba.moco.util.BaseTypeUtil

import javax.servlet.http.HttpServletRequest

/**
 * Created by wb-lj240895 on 2016/11/19.
 */
class ScriptUtil{
    def static getRequestBean (HttpServletRequest request,Class aClass){
        def params = request.getParameterMap();
        return BaseTypeUtil.mapToBean(params, aClass)
    }
}
